package dao

import (
	"doctor_srv/global"
	"doctor_srv/model"
)

func GetDoctor(start, end string, id int) []model.Doctor {

	var doctor []model.Doctor
	global.DB.Where("hospital_id = ?", id).Where("created_at BETWEEN ? AND ?", start, end).Find(&doctor)

	return doctor

}
